* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Background */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
    position: relative;
    background: url("/Images/bgoflogin.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.background-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* Glass Container */
.forgot-container {
    width: 420px;
    padding: 42px;
    border-radius: 28px;
    background: rgba(18, 12, 38, 0.85);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(168, 85, 247, 0.35);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.55),
        inset 0 1px 1px rgba(255, 255, 255, 0.05);
    color: #fff;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon Wrapper */
.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(139, 99, 255, 0.2), rgba(168, 85, 247, 0.2));
    border: 2px solid rgba(168, 85, 247, 0.35);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(168, 85, 247, 0);
    }
}

.icon-wrapper i {
    font-size: 36px;
    color: #a855f7;
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Title */
h1 {
    font-size: 36px;
    margin-bottom: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #e0d4ff);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 15px;
    opacity: 0.85;
    margin-bottom: 32px;
    color: #e0d4ff;
    line-height: 1.5;
}

/* Form */
form {
    text-align: left;
    margin-bottom: 24px;
}

.field {
    margin-bottom: 24px;
}

label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    opacity: 0.85;
    color: #e0d4ff;
}

/* Input */
input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1.5px solid rgba(168, 85, 247, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: white;
    outline: none;
    font-size: 14px;
    transition: all 0.25s ease;
    text-align: left;
}

input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

input::placeholder {
    color: #c6c6c6;
}

/* Error State */
.error {
    border-color: #ff4d6d !important;
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.15) !important;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-text {
    color: #ff4d6d;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-text::before {
    content: '⚠';
    font-size: 14px;
}

.error-container {
    min-height: 18px;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #8b63ff, #a855f7);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 12px 30px rgba(139, 99, 255, 0.45);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(139, 99, 255, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: inline-block;
}

/* Success Message */
.success-message {
    display: none;
    padding: 16px 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.4);
    border-radius: 14px;
    margin-bottom: 24px;
    animation: slideDown 0.4s ease-in-out;
    text-align: left;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message.show {
    display: flex;
    gap: 14px;
    align-items: start;
}

.success-message i {
    font-size: 24px;
    color: #10b981;
    flex-shrink: 0;
    margin-top: 2px;
}

.success-text strong {
    display: block;
    font-size: 14px;
    color: #10b981;
    margin-bottom: 4px;
    font-weight: 600;
}

.success-text p {
    font-size: 13px;
    color: #d1fae5;
    line-height: 1.4;
    margin: 0;
}

/* Back to Login */
.back-to-login {
    padding-top: 24px;
    border-top: 1px solid rgba(168, 85, 247, 0.2);
}

.back-to-login a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a855f7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.back-to-login a:hover {
    color: #c084fc;
    gap: 12px;
}

.back-to-login a i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.back-to-login a:hover i {
    transform: translateX(-4px);
}

/* Particles Animation */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 6px;
    height: 8px;
    background: rgba(168, 85, 247, 0.35);
    border-radius: 50%;
    filter: blur(1px);
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.2;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-120vh) translateX(30px);
        opacity: 0;
    }
}

/* RESPONSIVE */

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .forgot-container {
        width: 100%;
        max-width: 420px;
        padding: 32px 24px;
    }

    h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 14px;
    }

    .icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .icon-wrapper i {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .forgot-container {
        padding: 28px 20px;
        border-radius: 22px;
    }

    h1 {
        font-size: 24px;
    }

    .subtitle {
        font-size: 13px;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .icon-wrapper i {
        font-size: 28px;
    }
}

.hidden {
    display: none !important;
}